//各个模块下reducer的模版
import * as types from '../action-types'
/* person 模块下的reducer */
const initial = {
    num:0,
    info:null
};
export default function personalReducer(state = initial,action){
    state = {...state};

    switch(action.type){
        case types.PERSONAL_SUP:
            state.info = action.payload;
            break;
        default:
    }

    return state;
}